<%= stylesheet_link_tag 'stakeholders' %>
<div id="stakeholderMenu" class="subMenu">
	Projekt w&auml;hlen <%= select("project_to_user", "project_id", ProjectToUser.find_all_by_user_id(current_user.id).collect{|u| [Project.find_by_id(u.project_id).name, u.project_id]}, :selected => current_user.current_project_id) %>
	<span class="subMenuPipe"></span>
	<a href="javascript:void(null)" id="addStakeholder"><%= image_tag("layout/Create.png", :id => "createIcon", :alt => "Neuen Stakeholder erstellen", :class => "icon") %></a>
	<span class="subMenuPipe"></span>
	<a href="javascript:void(null)" id="changeStakeholder"><%= image_tag("layout/Options.png", :id => "changeIcon", :alt => "Stakeholder bearbeiten", :class => "icon") %></a>	
	<a href="javascript:void(null)" id="deleteStakeholder"><%= image_tag("layout/Erase.png", :id => "deleteIcon", :alt => "Stakeholder löschen", :class => "icon") %></a>	
	<span class="subMenuPipe"></span>
</div>

<div id="wrapStakeholder">
	<h3>Stakeholder</h3>
	
	<table>
		<tr>
			<th>Name</th>
			<th>Beschreibung</th>
		</tr>
		<% Stakeholder.find_all_by_project_id(@activeProject).each do |stakeholder| %>
			<tr class="stakeholder" id="sth_<%= stakeholder.id %>">
				<td><%= raw stakeholder.name %></td>
				<td><%= raw stakeholder.description %></td>
			</tr>
		<% end %>
	</table>
</div>
